local pos_table = {
	[1000] = {pos = {x = 54, y = 107, z = 6}, lvl = 20},
	[1001] = {pos = {x = 54, y = 107, z = 5}, lvl = 25}
}

function onStepIn(cid, item, pos, frompos)
	if getPlayerLevel(cid) >= (pos_table[item.uid]).lvl then
		doTeleportThing(cid, (pos_table[item.uid]).pos)
		doSendMagicEffect((pos_table[item.uid]).pos, CONST_ME_TELEPORT)
	end
	return true
end

function onAddItem(moveitem, tileitem, position)
	if moveitem.itemid == 5901 then
		doRemoveItem(moveitem.uid)
		doCreateItem(2363, 1, position)
		doSendMagicEffect(position, CONST_ME_HITBYFIRE)
	end
	return true
end